package com.lmt_12;

import java.io.File;
import java.util.Arrays;

public class FileTest3 {
    public static void main(String[] args) {
        File f = new File("/home/rivotek/桌面/lmt");
        String[] list = f.list();
        System.out.println(Arrays.toString(list));

        File[] files = f.listFiles();
        Arrays.toString(files);
    }
}
